package resource;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

/**
 * @title: Music
 * @Author: wangzijun
 * @description:
 * @version: 1.0.0
 * @CreateTime: 2022-10-08  23:49
 */
public class Music {
    public Music() throws FileNotFoundException, JavaLayerException {
        Player player;
        String str=System.getProperty("user.dir")+"/SuperMairo/src/Music/music.wav";
        BufferedInputStream name=new BufferedInputStream(new FileInputStream(str));
        player =new Player(name);
        player.play();
    }
}
